﻿using System;
namespace 早睡早起不犯困
{
    class Program
    {
        //1、猫、狗、鸭、猴，（吃、游泳、爬树）
        static void Main(string[] args)
        {
            SayHi sayHi = new SayHi("猫");
            CatSay(sayHi);
            SayHi sayHi1 = new SayHi("狗");
            DogSay(sayHi1);
            SayHi sayHi2 = new SayHi("鸭");
            DuckSay(sayHi2);
            SayHi sayHi3 = new SayHi("猴");
            MonkeySay(sayHi3);
        }
        static void CatSay(SayHi eat)
        {
            eat.Climb();
            eat.Eat();
            Console.WriteLine();
        }
        static void DogSay(SayHi eat)
        {
            eat.Swim();
            eat.Eat();
            Console.WriteLine();
        }
        static void DuckSay(SayHi eat)
        {
            eat.Swim();
            eat.Eat();
            Console.WriteLine();
        }
        static void MonkeySay(SayHi eat)
        {
            eat.Swim();
            eat.Eat();
            eat.Climb();
            Console.WriteLine();
        }
    }



}
